export class Menu {
  private _id: number;

  private _pId: number;

  private _name: string;

  private _menuName: string;

  private _icon: string;

  private _code: string;

  private _meta: object;

  private _children: Array<Menu>;

  constructor(
    id: number,
    pId: number,
    name: string,
    menuName: string,
    icon: string,
    code: string,
    meta: object,
    children: Array<Menu>,
  ) {
    this._id = id;
    this._pId = pId;
    this._name = name;
    this._menuName = menuName;
    this._icon = icon;
    this._code = code;
    this._meta = meta;
    this._children = children;
  }
  get id(): number {
    return this._id;
  }

  set id(value: number) {
    this._id = value;
  }

  get pId(): number {
    return this._pId;
  }

  set pId(value: number) {
    this._pId = value;
  }

  get name(): string {
    return this._name;
  }

  set name(value: string) {
    this._name = value;
  }

  get menuName(): string {
    return this._menuName;
  }

  set menuName(value: string) {
    this._menuName = value;
  }

  get icon(): string {
    return this._icon;
  }
  set icon(value: string) {
    this._icon = value;
  }
  get code(): string {
    return this._code;
  }

  set code(value: string) {
    this._code = value;
  }

  get meta(): object {
    return this._meta;
  }

  set meta(value: object) {
    this._meta = value;
  }

  get children(): Array<Menu> {
    return this._children;
  }

  set children(value: Array<Menu>) {
    this._children = value;
  }

}
